package top.sdaily.message.push;

import cn.jpush.api.push.PushResult;

/**
 * Created by admin on 2017/3/14.
 */
public class WosPushResult {

    private int code;
    private String msg;
    private boolean success;

    public WosPushResult(){
        super();
    }

    public WosPushResult(PushResult pushResult){
        this.code = pushResult.statusCode;
        this.msg = pushResult.getOriginalContent();
        this.success = pushResult.isResultOK();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
